package com.movitech.mobile.cz.base.purchase.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.movitech.mobile.cz.base.modules.controller.RestReturnResult;
import com.movitech.mobile.cz.base.purchase.bizvo.StrategicProtocolListReqVO;
import com.movitech.mobile.cz.base.purchase.entity.WStrategicProtocol;
import com.movitech.mobile.cz.base.purchase.entity.ext.ExtWStrategicProtocol;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 战略采购协议 服务类
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-03-15
 */
public interface WStrategicProtocolService extends IService<WStrategicProtocol> {
    List<ExtWStrategicProtocol> findByIds(List<String> ids);
    List<ExtWStrategicProtocol> findByEntity(ExtWStrategicProtocol wStrategicProtocol);
    List<ExtWStrategicProtocol> findPageByEntity(Page<ExtWStrategicProtocol> page, ExtWStrategicProtocol wStrategicProtocol);
    
	RestReturnResult searchStrategicProtocolList(StrategicProtocolListReqVO strategicProtocolListReqVO);
	
	RestReturnResult getWStrategicProtocol(String id);

    List<ExtWStrategicProtocol> findWStrategicProtocolByStrategicProtocolSynId(Map<String, Object> mapParams);

    boolean checkRepeat(WStrategicProtocol wStrategicProtocol);
}
